/**
 * MoneyInput
 * 
 * This class extends TextInput and provides input masking Money fields.
 * 
 * Events: (in addition to those of TextInput)
 * 
 * inputMaskEnd - dispatched when the last character is entered that completes
 *      the mask. In the example, it would be the final 2.
 * 
 * Styles: (no new styles)
 * 
 * Keyboard:
 * 
 * Backspace moves the insertion point back a single space, replacing
 *     the character with the blankChar character.
 * 
 * Delete replaces the character to the right of the insertion point with
 *     the blankChar character and then advances the insertion point to
 *     the next viable input position.
 * 
 * Space replaces the next visbale input position with the defaultChar.
 * 
 * Left and Right Arrow move the insertion point to the previous or next
 *     viable input position.
 * 
 * Home moves the insertion point to the first viable input character
 *     in the field.
 * 
 * End moves the insertion point to the last viable input character
 *     in the field.
 */
package com.flca.frw.components
{
	import mx.controls.TextInput;
	import flash.events.TextEvent;
	import flash.events.MouseEvent;
	import flash.events.KeyboardEvent;
	import flash.events.FocusEvent;
	import flash.events.Event;
	import flash.ui.Keyboard;

	[Event(name="inputMaskEnd")]
	
	public class MoneyInput extends TextInput
	{
		public function MoneyInput() {
			if (restrict == null) {
				restrict = "0-9, .";
			}
			
		}
	}
}